project(ProjectName)



set(CMAKE_CXX_STANDARD 11)

if (NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE Release)
endif (NOT CMAKE_BUILD_TYPE)

set(ONNX_ROOT /opt/onnxruntime-trt/)
set(ONNX_INC_DIR ${ONNX_ROOT}include/)
set(LIB_ONNX ${ONNX_ROOT}lib/libonnxruntime.so)
include_directories(${ONNX_INC_DIR}
        ${ONNX_INC_DIR}onnxruntime/core/session/
        ${ONNX_INC_DIR}onnxruntime/core/providers/tensorrt/)
        
        
cmake_minimum_required(VERSION 3.15)
add_library(algo  cpp/main.cpp cpp/jsoncpp.cc)

find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS}
/opt/intel/
)
add_definitions(-std=c++11)

target_include_directories(algo PUBLIC 
/opt/intel/openvino/extras/opencv/include/
/opt/intel/openvino/runtime/include/
/opt/intel/openvino/runtime/include/ie/

)
target_link_libraries(algo
${OpenCV_LIBS}
/opt/intel/openvino/runtime/lib/intel64/libopenvino.so

)
